package com.example.todoapp.data;

import com.example.todoapp.data.entities.TodoItem;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

public interface TodoItemRepository extends CrudRepository<TodoItem, Long>, JpaSpecificationExecutor<TodoItem> {
    /**
     * 根据 ID 查询
     * @param id
     * @return
     */
    TodoItem findFirstById(Long id);
}